package cn.tpshion.shop.util;

import org.mindrot.jbcrypt.BCrypt;

public class BCryptUtil {

    public static String encrypt(String password) {
        return BCrypt.hashpw(password, BCrypt.gensalt());
    }

    public static void main(String[] args) {
        System.out.println(encrypt("123456"));
    }

}
